package JET.recorder;

import JET.Centers.ControlCenter;
import JET.physics.bodies.SpringBody;
import java.util.ArrayList;
import java.util.Hashtable;

/**
 *
 * @author 057Ry
 */
public class Recorder
{
    static final ControlCenter CC = ControlCenter.getInstance();
    private Hashtable recTable;

    public Recorder() {
        recTable = new Hashtable(20);
    }

    public Hashtable getRecTable() {
        return recTable;
    }

    public void addNewRecordsSet(SpringBody sb)
    {
        recTable.put(new Integer(sb.getID()), new ArrayList<BodyHelper>(200) );
    }

    public void addSpringBodyData(SpringBody sb, double time)
    {
//        ArrayList<BodyHelper> recList = (ArrayList<BodyHelper>) recTable.get( new Integer(sb.getID()) );
//        if (recList != null)
//            recList.add( new BodyHelper(sb, time) );
//        else
//            System.out.println("dupa zbita! "+recList);
    }
}
